﻿using Snappy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MX.Core.Compress
{
    public static class SnappyHelper
    {
        public static byte[] Compress(byte[] data)
        {
            return SnappyCodec.Compress(data);
        }


        static public byte[] Decompress(byte[] data)
        {
            return SnappyCodec.Uncompress(data);
        }
    }
}
